﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.IsolatedStorage;
using System.IO;

namespace _1._17.IsolatedStorageTest
{
    class Program
    {
        static void Main(string[] args)
        {
            IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForAssembly();

            using (IsolatedStorageFileStream stream = new IsolatedStorageFileStream("file1.txt", FileMode.OpenOrCreate, FileAccess.Write, FileShare.None, file))
            {
                byte[] buf = { 123, 123, 123, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 23 };

                for (int i = 0; i < 10000000; i++)
                {
                    stream.Write(buf, 0, buf.Length);
                }
            }
        }
    }
}
